package day0811T;

/**
 * @Author:galaxy_yan
 * @Date: 2022/8/14
 * @Time: 9:52
 * @Description
 * 作业标题(1680)
 * 使用函数求最大值
 */
public class text1T {
    public static void main(String[] args) {
        System.out.println(max3(15,28,25));
    }
    public static int max2(int n1,int n2){
        return n1>n2? n1:n2;
    }

    public static int max3(int n1,int n2,int n3){
        return  max2(max2(n1,n2),n3);
    }
}
